package com.simple.behavior.superclassandsubclass.templatemethod;

import com.simple.LogUtil;

/**
 * @author simple
 * @version 1.0
 * @date 2019-01-04 16:55
 * @since 1.0
 */
public class Start {
    public static void main(String[] args) {
        String exp = "3+5";
        AbstractCalculator calculator = new Plus();
        int result = calculator.calculate(exp, "\\+");
        LogUtil.info("计算: " + exp + "=" + result);
    }
}
